Audio

interface Audio : Observable<T>

Allows controlling audio for this Browser instance and receive notifications when audio has been started or stopped playing.

Functions

Link copied to clipboard
abstract fun browser(): Browser
Returns the Browser instance of this audio.
Link copied to clipboard
abstract fun isMuted(): Boolean
Returns true when audio output is muted.
Link copied to clipboard
abstract fun isPlaying(): Boolean
Returns true when the audio is currently playing on the loaded web page.
Link copied to clipboard
abstract fun mute()
Mutes all audio output.
Link copied to clipboard
abstract fun <E : T?> on(eventClass: Class<E>, observer: Observer<E>): Subscription
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
abstract fun unmute()
Unmutes all audio output.